port=$(netstat -tlnp | grep 8080 | awk '{print $7}' | awk -F '/' '{print $1}')
if [$port == ""]
then
	echo "starting..."
	nohup mvn -e -X compile spring-boot:run >../log.out 2>&1 &
	echo "start successfully!"
else
	echo "killing $port"
	kill -9 $port
	echo "starting..."
	nohup mvn -e -X compile spring-boot:run >../log.out 2>&1 &
	echo "start successfully!"
fi

